<?php
//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBlogColumnsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('blog_columns', function (Blueprint $table) {
			$table->comment = '栏目表';
            $table->increments('id')->comment('栏目ID');
			$table->string('title')->default('')->comment('栏目名称');
			$table->integer('pid')->default(0)->comment('父栏目ID');
			$table->tinyInteger('status')->default(1)->comment('显示状态:0=隐藏,1=显示');
			$table->integer('sort')->default(1)->comment('排序');
            $table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('blog_columns');
    }
}
